﻿using CommonLibrary;
using CommonLibrary.Exceptions;
using ConnectionManager.SerialConnection.PS3;

namespace ConnectionManager
{
    public static class ConnectionManagerFactory
    {
        public static IConnectionManager GetConnectionManager(ConnectionManagerType type, IAppContext context )
        {
            switch (type)
            {
                case ConnectionManagerType.PS3SerialConnection:
                    return new PS3SerialConnectionManager(context);
            }
            throw new SimpleSmartException("Failed to generate the connection manager");
        }
    }

    public enum ConnectionManagerType
    {
        PS3SerialConnection = 0,
    }
}
